package cn.baiy;

import java.io.Serializable;

//保存游戏
public class SaveInfo implements Serializable {
    public static final long serialVersionUID = 1L;

    private BattleShip ship = new BattleShip();//战船
    private SeaObject[] submarines = {};//三种潜艇数组
    private Mine[] mines = {};//水雷数组
    private Bomb[] bombs = {};//炸弹数组

    private int subEnterIndex = 0;//潜艇入场计数
    private int mineEnterAction = 0;//水雷入场计数
    private int score = 0;//玩家得分

    public SaveInfo(){}

    public SaveInfo(BattleShip ship, SeaObject[] submarines,
                    Mine[] mines, Bomb[] bombs, int subEnterIndex,
                    int mineEnterAction, int score) {
        this.ship = ship;
        this.submarines = submarines;
        this.mines = mines;
        this.bombs = bombs;
        this.subEnterIndex = subEnterIndex;
        this.mineEnterAction = mineEnterAction;
        this.score = score;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public BattleShip getShip() {
        return ship;
    }

    public void setShip(BattleShip ship) {
        this.ship = ship;
    }

    public SeaObject[] getSubmarines() {
        return submarines;
    }

    public void setSubmarines(SeaObject[] submarines) {
        this.submarines = submarines;
    }

    public Mine[] getMines() {
        return mines;
    }

    public void setMines(Mine[] mines) {
        this.mines = mines;
    }

    public Bomb[] getBombs() {
        return bombs;
    }

    public void setBombs(Bomb[] bombs) {
        this.bombs = bombs;
    }

    public int getSubEnterIndex() {
        return subEnterIndex;
    }

    public void setSubEnterIndex(int subEnterIndex) {
        this.subEnterIndex = subEnterIndex;
    }

    public int getMineEnterAction() {
        return mineEnterAction;
    }

    public void setMineEnterAction(int mineEnterAction) {
        this.mineEnterAction = mineEnterAction;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

}
